package com.artpri.dao;

import java.util.List;

import com.artpri.model.OrderInfo;
import com.artpri.service.OrderInfoService.OrderType;

/**
 * 
 * @author ZhangSi
 *
 */
public interface OrderInfoDao extends HibernateDao<OrderInfo>{

	List<OrderInfo> getOrderInfoByUserNum(Integer userNum);
	
	List<OrderInfo> getOrderList(Integer userNum, OrderType type);
	
	List<OrderInfo> getOrderListByPage(Integer userNum, OrderType type, int pageNo, int pageSize);

	Integer getOrderCount(Integer userNum, OrderType type);
}
